﻿using Domain.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configers
{
    public class EIConfigers : IEntityTypeConfiguration<EI>
    {
        public void Configure(EntityTypeBuilder<EI> builder)
        {
            builder.ToTable(nameof(EI));

            builder.Property(e => e.HumanName).HasMaxLength(60).IsRequired(false);
            builder.Property(e => e.InterviewAmount).IsRequired(false);
            builder.Property(e => e.HumanMajorKindId).HasMaxLength(2).IsRequired(false);
            builder.Property(e => e.HumanMajorKindName).HasMaxLength(30).IsRequired(false);
            builder.Property(e => e.HumanMajorId).HasMaxLength(2).IsRequired(false);
            builder.Property(e => e.HunmaMajorName).HasMaxLength(30).IsRequired(false);
            builder.Property(e => e.ImageDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.NativeLanguageDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.ForeignLanguageDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.ResponseSpeedDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.EQDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.IQDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.MultiQualityDegree).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.Register).HasMaxLength(60).IsRequired(false);
            builder.Property(e => e.Checker).HasMaxLength(60).IsRequired(false);
            builder.Property(e => e.RegisteTime).IsRequired(false);
            builder.Property(e => e.CheckTime).IsRequired(false);
            builder.Property(e => e.ResumeId).IsRequired(false);
            builder.Property(e => e.Result).HasMaxLength(20).IsRequired(false);
            builder.Property(e => e.InterviewComment).HasMaxLength(200).IsRequired(false);
            builder.Property(e => e.CheckComment).HasMaxLength(200).IsRequired(false);
            builder.Property(e => e.InterviewStatus).IsRequired(false);
            builder.Property(e => e.CheckStatus).IsRequired(false);

        }
    }
}
